<template>
  <el-container>
    <el-header> <h1>铁路购票系统-车票订单列表</h1></el-header>
    <el-main>
      <el-table
    :data="form"
    stripe
    style="width: 100%">
    <el-table-column
      prop="name"
      label="购票人"
      width="180">
    </el-table-column>
    <el-table-column
      prop="start"
      label="始发站"
      width="180">
    </el-table-column>
    <el-table-column
      prop="end"
      label="到达站">
    </el-table-column>
        <el-table-column
          prop="time"
          label="购票时间">
        </el-table-column>
        <el-table-column
          prop="date"
          label="乘车日期">
        </el-table-column>
        <el-table-column
          prop="price"
          label="票价">
        </el-table-column>
  </el-table>
    </el-main>
    <el-footer>
    <div class="block">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page.sync="currentPage1"
        :page-size="100"
        layout="total, prev, pager, next"
        :total="1000">
      </el-pagination>
    </div>
  </el-footer>
  </el-container>
</template>

<script>
export default {
  name: 'SubwayView',
  data () {
    return {
      form: {

      }
    }
  },
  methods: {
    query () {
      this.axios.post('/subway/list')
    }
  }
}
</script>

<style scoped>

</style>
